#include "mainwindow.h"
#include <QApplication>
#include <QTextCodec>
#include <QProcess>

int main(int argc, char *argv[])
{
    int exitcode=0;
    QApplication a(argc, argv);
    MainWindow w;
    w.show();
    exitcode=a.exec();
    if(exitcode==733)
    {
        QProcess::startDetached(qApp->applicationFilePath(), QStringList());
        return 0;
    }
    return exitcode;
}
